﻿using NUnit.Framework;
using System.Collections.Generic;
using OpenSda.Agilcont.Common.Data.Contracts;
using OpenSda.Agilcont.Common.Data.Entities;
using System;

namespace OpenSda.Agilcont.Common.Data.NhContexts.NuTest
{

    [TestFixture]
    public class ClienteDataTest : AbstractBaseDataTests
    {
        private IClienteData clienteData;
        //private IOrderDao orderDao;




        // These properties will be injected based on type
        public IClienteData ClienteData
        {
            set { clienteData = value; }
        }




        [Test]
        public void ClienteDaListAllTests()
        {
            var c = clienteData.GetAll();

            Assert.IsNotNull(c);
        }


        [Test]
        public void ClienteDeleteTests()
        {
            Cliente c = clienteData.Select("ASD");
            clienteData.Delete(c);
        }



        [Test]
        public void ClienteDaoTests()
        {

            Cliente a = new Cliente();
            a.Codigo = "001";
            a.Nombres = "Manuel";
            a.DniRuc = "44853015";
            a.Fonos = "4554433";
            a.AgenciaRef = "sda";
            clienteData.Save(a);
        }
    }
}

    
     
   
 